/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package xcore.model;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import xcore.constraint.XIntVar;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>XRelation</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link xcore.model.XRelation#getXObject <em>XObject</em>}</li>
 *   <li>{@link xcore.model.XRelation#getXReference <em>XReference</em>}</li>
 *   <li>{@link xcore.model.XRelation#getObjects <em>Objects</em>}</li>
 * </ul>
 * </p>
 *
 * @see xcore.model.ModelPackage#getXRelation()
 * @model
 * @generated
 */
public interface XRelation extends EObject {
	/**
	 * Returns the value of the '<em><b>XObject</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>XObject</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>XObject</em>' reference.
	 * @see #setXObject(XObject)
	 * @see xcore.model.ModelPackage#getXRelation_XObject()
	 * @model required="true"
	 * @generated
	 */
	XObject getXObject();

	/**
	 * Sets the value of the '{@link xcore.model.XRelation#getXObject <em>XObject</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>XObject</em>' reference.
	 * @see #getXObject()
	 * @generated
	 */
	void setXObject(XObject value);

	/**
	 * Returns the value of the '<em><b>XReference</b></em>' container reference.
	 * It is bidirectional and its opposite is '{@link xcore.model.XReference#getXRelations <em>XRelations</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>XReference</em>' container reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>XReference</em>' container reference.
	 * @see #setXReference(XReference)
	 * @see xcore.model.ModelPackage#getXRelation_XReference()
	 * @see xcore.model.XReference#getXRelations
	 * @model opposite="xRelations" required="true" transient="false"
	 * @generated
	 */
	XReference getXReference();

	/**
	 * Sets the value of the '{@link xcore.model.XRelation#getXReference <em>XReference</em>}' container reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>XReference</em>' container reference.
	 * @see #getXReference()
	 * @generated
	 */
	void setXReference(XReference value);

	/**
	 * Returns the value of the '<em><b>Objects</b></em>' containment reference list.
	 * The list contents are of type {@link xcore.constraint.XIntVar}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Objects</em>' containment reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Objects</em>' containment reference list.
	 * @see xcore.model.ModelPackage#getXRelation_Objects()
	 * @model containment="true"
	 * @generated
	 */
	EList<XIntVar> getObjects();

} // XRelation
